<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>个人中心</title>
<link href="/Public/Admin/static/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="/Public/Admin/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css" />

<style type="text/css">
	*{padding: 0;margin: 0;}
	body,html{width: 100%;height: 100%;}
	body>div{height: 100%;padding:0 30px 0 0;}
	.nav{height: 100%;background: black;position: absolute;left:0px;width:60px;}
	iframe {width: 100%;height: 100%;border: 0;}
	.nav>a{display: block;cursor: pointer;border:0;color: white;text-align: center;height: 70px;padding-top:5px;width:100%;text-decoration:none;}
	
	.nav>a>i{display: block;text-align: center;line-height:40px;color: white;font-size: 40px;}
	.on{background: #666;}
	.nav>a:hover{background: #666};
	#content{}
</style>
</head>
<body>
<div class="col-xs-1">
<div class="nav ">
	<a onclick="navClick(this)" url="<?php echo U('content');?>" class="on"><i class="Hui-iconfont">&#xe62c;</i>主页</a>
	<a onclick="navClick(this)" url="<?php echo U('Task/task_list');?>"><i class="Hui-iconfont">&#xe637;</i>任务</a>
	<a onclick="navClick(this)" url="<?php echo U('Charge/recharge');?>"><i class="Hui-iconfont">&#xe63a;</i>充值</a>
</div>
</div>
<iframe class="col-xs-11" id="content" src="<?php echo U('content');?>"></iframe>
</body>

<script type="text/javascript" src="/Public/Admin/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript">
	function navClick(obj){
		$('.nav a').removeClass('on');
		$(obj).addClass('on');
		$('#content').attr('src',$(obj).attr('url'));
	}
</script>

</html>